﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace FastCtr
{
    public partial class TimeInput : UserControl
    {
        public TimeInput()
        {
            InitializeComponent();
            DateTime dateTime = DateTime.Now;
            numericUpDown1.Value = dateTime.Hour;
            numericUpDown2.Value = dateTime.Minute;
        }
        public DateTime Timepanel
        {
            get
            {
                DateTime dateTime = new DateTime(2020, 11, 11, (int)numericUpDown1.Value, (int)numericUpDown2.Value, 0);
                return dateTime;
            }
            set
            {
                numericUpDown1.Value = value.Hour;
                numericUpDown2.Value = value.Minute;
            }
        }
    }
}
